<?php

class package_model extends FlexiGrid_Model {

    function __construct()
    {
        parent::__construct();
        
    }
    function get($ID=""){
        $where=array("ID"=>$ID);
        $query=$this->db->get_where('dtb_package', $where); 
        return $query->result();
    }
    function getByAlias($Alias=""){
        $where=array("Alias"=>$Alias,"Delete"=>NULL);
        $query=$this->db->get_where('dtb_package', $where); 
        return $query->result();
    }
    function gets(){
        $query=$this->db
                ->where(array(
                "Delete"=>NULL,
                "Status"=>"Public"
                ))
                ->get('dtb_package'); 
        return $query->result();
    }
    
}
?>
